package com.alivc.testmediaplayer;

import android.app.Application;
import com.alivc.player.AliVcMediaPlayer;

import java.io.*;

public class VideoApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        // 检查/mnt/sdcard/TAOBAOPLAYER 是否存在,不存在创建
        File rootPath = new File("/mnt/sdcard/aliyun");
        if (!rootPath.exists()) {
            rootPath.mkdir();
        }

        final String businessId = "";

        AliVcMediaPlayer.init(getApplicationContext(), businessId);
    }


}
